<?php
session_start();

// includes
	include_once "quickcrud_connect.php";
	include_once "CFclass/CF_mysql_com.php";
	include_once "CFclass/CF_process_class.php";
	include_once "crudsets_fields.php";

class process extends CFprocess {



	function on_pre_delete(){

		$crudset_id = $this->newvalues['crudset_id'];
		$qry_clear_cols = "DELETE FROM crudcols WHERE crudset_id = $crudset_id";
		//print $qry_clear_cols;
		//exit;
		do_query($qry_clear_cols);
	}
}
	
$process = new process($fieldspec, "crudsets_list.php");

$process->set_maintable('crudsets');

$process->do_actions();










?>